<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>餐店增加</title>
<link rel="stylesheet" type="text/css" href="../../Res/LayUI/css/layui.css" media="all">
<style type="text/css">
	body{
		margin:20px 0px;
	}
</style>
</head>
<body>
	<fieldset class="layui-elem-field layui-field-title"
		style="margin-top: 20px;">
		<legend>增加餐店</legend>
	</fieldset>

	<form class="layui-form" action="../../meal/add" method="post" enctype="multipart/form-data">
		<div class="layui-form-item">
			<div class="layui-inline">
				<label class="layui-form-label">餐店名称</label>
				<div class="layui-input-inline">
					<input type="text" name="mealName" id="mealName" 
						lay-verify="" placeholder="餐店名称" maxlength="10"
						autocomplete="off" class="layui-input">
				</div>
			</div>
		</div>

		<div class="layui-form-item">
			<div class="layui-inline">
				<label class="layui-form-label">餐店地址</label>
				<div class="layui-input-inline">
					<input type="text" name="mealSite" id="mealSite" 
						lay-verify="" placeholder="餐店地址" maxlength="30" autocomplete="off"
						class="layui-input">
				</div>
			</div>
		</div>
		<div class="layui-form-item">
			<div class="layui-inline">
				<label class="layui-form-label">联系人</label>
				<div class="layui-input-inline">
					<input type="text" name="mealPerson" id="mealPerson" 
						lay-verify="" placeholder="联系人" maxlength="10" autocomplete="off"
						class="layui-input">
				</div>
			</div>
		</div>	
		<div class="layui-inline">
			<label class="layui-form-label">联系电话</label>
			<div class="layui-input-inline">
				<input type="text" name="mealPhone" id="mealPhone" 
					lay-verify="" placeholder="联系电话" maxlength="11" autocomplete="off"
					class="layui-input">
			</div>
		</div>
			
		<div class="layui-form-item">
			<div class="layui-inline">
				<label class="layui-form-label">店铺Logo图片</label>
				<div class="layui-input-inline">
					<input type="file" name="pic" id="pic" 
						lay-verify="" placeholder="店铺Logo" autocomplete="off"
						class="layui-input">
				</div>
			</div>
		</div>
				<!-- <!-- <div class="layui-inline">
					<label class="layui-form-label">是否有效</label>
					<div class="layui-input-inline">
						<input type="text" name="isva" id="isva" 
							lay-verify="" placeholder="是否有效" autocomplete="off"
							class="layui-input">
					</div>
				</div> -->
			<!-- <div class="layui-inline">
				<label class="layui-form-label">操作人</label>
				<div class="layui-input-inline">
					<input type="text" name="oper" id="oper" 
						lay-verify="" placeholder="操作人" autocomplete="off"
						class="layui-input">
				</div>
			</div> -->
			<!-- <div class="layui-inline">
				<label class="layui-form-label">操作时间</label>
				<div class="layui-input-inline">
					<input type="date" name="optime" id="optime" 
						lay-verify="" placeholder="操作时间" autocomplete="off"
						class="layui-input">
				</div>
			</div> -->
			<div class="laayui-inline">
				<div class="layui-input-inline">
					<input type="hidden" name="role" id="r" 
						lay-verify="" placeholder="" autocomplete="off"
						class="layui-input">
				</div>
			</div>
		</div>

		<div class="layui-form-item">
			<div class="layui-input-block">
				<input type="submit" class="layui-btn" lay-submit=""
					lay-filter="Add" value="立即增加">
				<button type="reset" class="layui-btn layui-btn-primary">重置</button>
			</div>
		</div>
	</form>
	<script src="../../Res/LayUI/layui.js" charset="utf-8"></script>
	<script type="text/javascript">
		
		layui.use('form', function(){
			  var form = layui.form
			  ,layer = layui.layer
			  ,$ = layui.$;
			  
			  form.on('checkbox(filter)', function(data){
					var checked = $("input:checkbox:checked");
					var val = "";
					for(var i=0;i<checked.length;i++){
						val += checked[i].value+",";
					}
					$("#r").val(val);
				}); 
			  form.on('submit(Add)',function(){
				  //parent.location.reload(); // 父页面刷新
				  
			  });
			});
	</script>
</body>
</html>